import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class BookInfo {
  /**
   * book info id
   */
  @PrimaryGeneratedColumn('uuid')
  id: number;
  @Column({ default: '' })
  dynasty: string;

  @Column({ default: '' })
  yearTitle: string;

  @Column({ default: '' })
  bookName: string;

  @Column({ default: '' })
  author: string;

  @Column({ default: '' })
  totalVolume: string;

  @Column({ default: '' })
  volumeName: string;

  @Column({ default: '' })
  volume: string;

  @Column({ default: '' })
  context: string;

  @Column({ default: '' })
  page: string;
}
